<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Thor.Models.BookingRequest>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <% using (Html.BeginForm("Book", "Booking"))
       { %>
    <%= Html.Hidden("CalendarEmail") %>
    <%= Html.Hidden("CalendarId") %>
    <%= Html.Hidden("CalendarName") %>
    <p>
        <img alt="" src="..\..\Content\Logo.jpg" />
    </p>

    <fieldset>
        <legend>appointment request</legend>
        <p>
        <%= Html.ValidationSummary("Please correct the errors and try again.") %>
        </p>
        <p>
            <label for="CalendarName">resource:</label>
            <%= Html.Encode(Model.CalendarName) %>
        </p>
        <p>
            <label for="StartTime">date:</label>
            <%= Html.Encode(Model.StartTime.ToLongDateString().ToLower()) %>    
        </p>
        <p>
            <label for="Subject">
                subject:</label>
            <%= Html.TextBox("Subject") %>
            <%= Html.ValidationMessage("Subject", "*") %>
        </p>
        <p>
            <label for="StartTime">
                start time:</label>
            <%= Html.DropDownList("StartTime", Model.StartTimes) %>
            <%= Html.ValidationMessage("StartTime", "*") %>
        </p>
        <p>
            <label for="EndTime">
                end time:</label>
            <%= Html.DropDownList("EndTime", Model.EndTimes)%>
            <%= Html.ValidationMessage("EndTime", "*") %>
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <%} %>
</asp:Content>
